﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Reminder.aspx.cs" Inherits="Reminder"  title="Project Monitoring System" culture="auto:en-US" uiculture="auto" meta:resourcekey="PageResource1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server" Visible="false">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
 <asp:ObjectDataSource ID="ODSReminder" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetReminderDataByUserId" TypeName="IPTableAdapters.GetReminderSpTableAdapter">
        <SelectParameters>
            <asp:SessionParameter DefaultValue="00000000-0000-0000-0000-00000000000" Name="UserId"
                SessionField="UserId" Type="Object" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ODSRemider2" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetReminders" TypeName="IPTableAdapters.GetReminder2SpTableAdapter">
        <SelectParameters>
            <asp:SessionParameter DefaultValue="False" Name="SuperUser" SessionField="SuperUser"
                Type="Boolean" />
            <asp:SessionParameter DefaultValue="" Name="OwnerGroupID" SessionField="OwnerGroupID"
                Type="String" />
            <asp:SessionParameter Name="UserName" SessionField="UserName" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <div style="margin-left:10px;margin-right:10px;">
		<asp:Panel ID="Panel1" runat="server" Height="315px" BorderWidth="1px" ScrollBars="Auto" meta:resourcekey="Panel1Resource1" Width="100%">
			<asp:Label ID="Label1" runat="server" BackColor="White" Font-Bold="True" Text="Must do Listing" Width="100%" meta:resourcekey="Label1Resource1" CssClass="labelbar"></asp:Label>
			<asp:GridView CssClass="Grid" ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="#DEBA84" 
			        EmptyDataText="No Reminder Record Available!" BorderColor="#660000" BorderStyle="Solid" BorderWidth="1px" CellPadding="0" CellSpacing="0" 
			        DataKeyNames="ProjectGroupId,ProjectCode,Type,RowPointer" DataSourceID="ODSReminder" 
			        AllowSorting="True" Width="100%" meta:resourcekey="GridView1Resource1"
				    OnRowDataBound="GridView1_RowDataBound" 
				    OnSelectedIndexChanged="GridView1_SelectedIndexChanged1" 
				    OnRowCreated="GridView1_RowCreated">
				<Columns>
					<asp:TemplateField HeaderText="#" meta:resourcekey="TemplateFieldResource1"></asp:TemplateField>
					<asp:ButtonField CommandName="Select" DataTextField="ProjectCode" HeaderText="Project Code" SortExpression="ProjectCode" Text="Button" meta:resourcekey="ButtonFieldResource1">
						<ItemStyle HorizontalAlign="Left" />
					</asp:ButtonField>
					<asp:BoundField DataField="Applicant" HeaderText="Applicant" SortExpression="Applicant" meta:resourcekey="BoundFieldResource2">
						<ItemStyle HorizontalAlign="Left" />
					</asp:BoundField>
					<asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country" meta:resourcekey="BoundFieldResource3">
						<ItemStyle HorizontalAlign="Left" />
					</asp:BoundField>
					<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" meta:resourcekey="BoundFieldResource4">
						<ItemStyle HorizontalAlign="Left" />
					</asp:BoundField>
					<asp:BoundField DataField="HeadingName" HeaderText="Application Procedure" SortExpression="HeadingName" meta:resourcekey="BoundFieldResource5">
						<ItemStyle HorizontalAlign="Left" />
					</asp:BoundField>
					<asp:BoundField DataField="ACMEDueDate" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Company Due Date" HtmlEncode="False" SortExpression="ACMEDueDate" meta:resourcekey="BoundFieldResource15" />
					<asp:BoundField DataField="AgentDueDate" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Agent Due Date" HtmlEncode="False" SortExpression="AgentDueDate" meta:resourcekey="BoundFieldResource16" />
					<asp:BoundField DataField="ResponsiblePerson" HeaderText="ResponsiblePerson" SortExpression="ResponsiblePerson" meta:resourcekey="BoundFieldResource17" />
					<asp:BoundField DataField="Remark" HeaderText="Remark" SortExpression="Remark" meta:resourcekey="BoundFieldResource18" />
					<asp:BoundField DataField="RowPointer" HeaderText="RowPointer" ReadOnly="True" SortExpression="RowPointer" Visible="False" meta:resourcekey="BoundFieldResource19" />
					<asp:BoundField DataField="OverDue" ShowHeader="False" meta:resourcekey="BoundFieldResource6" />
				</Columns>
				<HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
				<RowStyle CssClass="GridRowStyle"/>
				<AlternatingRowStyle CssClass="GridAltRowStyle"/>
				<SelectedRowStyle CssClass="GridSelectedRowStyle"/>
				<PagerStyle CssClass="GridPagerStyle" ForeColor="White"/>
				<FooterStyle CssClass="GridFooterStyle"/>
			</asp:GridView>
		</asp:Panel>
		<br>
		<asp:Panel ID="Panel2" runat="server" Height="325px" Width="100%" BorderWidth="1px" meta:resourcekey="Panel2Resource1" ScrollBars="Auto">
			<asp:Label ID="Label2" runat="server" BackColor="White" Font-Bold="True" Text="Project with priority due date less than 90 days"
				Width="100%" meta:resourcekey="Label2Resource1" CssClass="labelbar"></asp:Label><br />
			<asp:GridView CssClass="Grid" ID="GridView2" runat="server" AllowPaging="True" AutoGenerateColumns="False"
				    BackColor="#DEBA84" EmptyDataText="No Reminder Record Available!" BorderColor="#660000"
				    BorderStyle="Solid" BorderWidth="1px" CellPadding="0" CellSpacing="0" AllowSorting="True" 
				    DataKeyNames="ProjectGroupId,ProjectCode,Type" DataSourceID="ODSRemider2" Width="100%" meta:resourcekey="GridView1Resource1"
				    OnRowDataBound="GridView2_RowDataBound" 
				    OnSelectedIndexChanged="GridView2_SelectedIndexChanged1" 
				    OnRowCreated="GridView2_RowCreated">
				<Columns>
					<asp:TemplateField HeaderText="#" meta:resourcekey="TemplateFieldResource2"></asp:TemplateField>
					<asp:ButtonField CommandName="Select" DataTextField="ProjectCode" HeaderText="Project Code" SortExpression="ProjectCode" Text="Button" meta:resourcekey="ButtonFieldResource2" />
					<asp:BoundField DataField="Applicant" HeaderText="Applicant" SortExpression="Applicant" meta:resourcekey="BoundFieldResource8" />
					<asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country" meta:resourcekey="BoundFieldResource9" />
					<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" meta:resourcekey="BoundFieldResource10" />
					<asp:BoundField DataField="HeadingName" HeaderText="Must do Task" ReadOnly="True" SortExpression="HeadingName" meta:resourcekey="BoundFieldResource11" Visible="False">
						<ItemStyle HorizontalAlign="Left" />
					</asp:BoundField>
					<asp:BoundField DataField="ACMEDueDate" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Company Due Date" HtmlEncode="False" SortExpression="ACMEDueDate" meta:resourcekey="BoundFieldResource12" />
					<asp:BoundField DataField="AgentDueDate" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Agent Due Date" HtmlEncode="False" SortExpression="AgentDueDate" meta:resourcekey="BoundFieldResource13" />
					<asp:BoundField DataField="PriorityDate" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Priority Date" HtmlEncode="False" SortExpression="PriorityDate" meta:resourcekey="BoundFieldResource14" />
					<asp:BoundField DataField="PCTDueDate" DataFormatString="{0:dd/MM/yyyy}" HeaderText="PCT Priority Due Date" HtmlEncode="False" SortExpression="PCTDueDate" meta:resourcekey="PCTPriorityDueDate"/>
					<asp:BoundField DataField="ResponsiblePerson" HeaderText="Responsible Person" SortExpression="Responsible Person" meta:resourcekey="BoundFieldResource20" />
					<asp:BoundField DataField="Remark" HeaderText="Remark" SortExpression="Remark" meta:resourcekey="BoundFieldResource21" />
					<asp:BoundField DataField="OverDue" ShowHeader="False" meta:resourcekey="BoundFieldResource7" />
				</Columns>
				<HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
				<RowStyle CssClass="GridRowStyle"/>
				<AlternatingRowStyle CssClass="GridAltRowStyle"/>
				<SelectedRowStyle CssClass="GridSelectedRowStyle"/>
				<PagerStyle CssClass="GridPagerStyle" ForeColor="White"/>
				<FooterStyle CssClass="GridFooterStyle"/>
			</asp:GridView>
		</asp:Panel>
    </div>
</asp:Content>

